﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Migrator.Framework;
using System.IO;
using System.Reflection;

namespace PlanoAulaHelper.Util
{
    [Migration(2)]
    public class _2_Version : Migration
    {
        public override void Up()
        {
            Database.BeginTransaction();
            StringBuilder conteudoArquivo = new StringBuilder();
            try
            {
                Database.AddColumn("PlanoAulaCab", "ObjetivoGeral", System.Data.DbType.AnsiString, 1000);
                Database.AddColumn("PlanoAulaCab", "ObjetivoEspecifico", System.Data.DbType.AnsiString, 1000);
                Database.AddColumn("DiaAula", "QtdAulas", System.Data.DbType.Int32, (object)0);
                Database.Commit();
            }
            catch
            {
                Database.Rollback();
                throw;
            }
        }

        public override void Down()
        {

        }
    }
}
